package com.model.dto.sys.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


@Data
public class UpdateSysMenuStatusDTO{
    @ApiModelProperty(value = "菜单权限ID,自动递增",required = true)
    @NotNull(message = "sysMenuId不能为空")
    private Long sysMenuId;
    @ApiModelProperty(value = "状态（0:有效,1:停用,2:删除）",allowableValues = "0,1,2")
    @Min(value = 0, message = "0:启用，1:停用，2:删除")
    @Max(value = 2, message = "0:启用，1:停用，2:删除")
    Byte isDelete;
}
